package com.niguang.labour.admin.controller;


import com.baomidou.mybatisplus.plugins.Page;
import com.niguang.labour.admin.service.WorkSiteUserService;
import com.niguang.labour.admin.vo.LaborListVo;

import com.niguang.labour.common.pojo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE 前端控制器
 * </p>
 *
 * @author
 * @since 2018-06-10
 */
@RestController
@RequestMapping("/workSiteUser")
public class WorkSiteUserController {

    @Autowired
    private WorkSiteUserService siteUserService;

    /**
     * 查询劳务合同信息
     */
    @GetMapping("/getSiteLaborList")
    public Result getSiteLaborList(String keyword, String siteId, Integer type, Page<LaborListVo> page) {
        return siteUserService.getLaborList(keyword, siteId, type, page);
    }

}
